#include<stdio.h>
#include<ctype.h>
int main()
{
    char arr[] = "I Am IronMan";
    int i = 0;
    while(arr[i])
    {
        if(isupper(arr[i]))
        {
            arr[i] = tolower(arr[i]);
        }
        i++;
    }
    printf("%s\n",arr);
    i=0;
    while(arr[i])
    {
        if(islower(arr[i]))
        {
            arr[i] = toupper(arr[i]);
        }
        i++;
    }
    printf("%s",arr);
    return 0;
}